<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <base href="<%=basePath%>">
   <!-- <base href="http://192.168.0.100:8080/YMGW/"> --> 
    <title>总部</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css">
    
    <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/main.js"></script>
	<script src="http://cdn.bootcss.com/angular.js/1.4.5/angular.min.js"></script>	 
    
	<script>
	 $(function(){
	 	var URL = document.location.toString();
			var sperIDs = URL.split("=")[1]
     $("#supermarketId").val(localStorage.getItem("id"));
     $.post(
           "productaAction/getSupermarketSet",
           {
           superID:sperIDs
           },
           function(data){
             $("input[name='upSendMoney']").val(data.upSendMoney).attr("disabled",true);
             $("input[name='freeSendMoney']").val(data.freeSendMoney).attr("disabled",true);
             $("input[name='sendMoney']").val(data.sendMoney).attr("disabled",true);
             $("input[name='sendPeople']").val(data.sendPeople).attr("disabled",true);
             $("input[name='sendTime']").val(data.sendTime).attr("disabled",true);
             $("input[name='superName']").val(localStorage.getItem("name")).attr("disabled",true);
             $("textarea[name='afterService']").val(data.afterService).attr("disabled",true);
             $("input[name='sendPhone']").val(data.sendPhone).attr("disabled",true);
           },"json");
})
	</script>
</head>
<body>
<%@ include file="header.jsp" %>
<%@ include file="left.jsp" %>
<div id="index" style="position: absolute;left: 180px;top: 80px;bottom: 0;right: 0;">
<section id="main">
    <div class="scrollbar1-1" id="style1-1">
        <div class="main_div">
            <div class="main_title">
                <span>超市设置</span>
            </div>
            <form class="form-horizontal" style="margin-top: 30px"  method="post" >
                <div class="form-group">
                    <label  class="col-xs-1 control-label">起送金额</label>
                    <div class="col-xs-3">
                       
                        <input  class="form-control" name="upSendMoney" placeholder="请输入起送金额">
                    </div>
                    <label  class="col-xs-1 control-label" style="text-align: left">元起送</label>
                </div>
                <div class="form-group">
                    <label  class="col-xs-1 control-label">满：</label>
                    <div class="col-xs-3">
                        <input  class="form-control" name="freeSendMoney"  placeholder="请输入满多少价格免配送费">
                    </div>
                    <label  class="col-xs-1 control-label" style="text-align: left">元免配送费</label>
                </div>
                <div class="form-group">
                    <label  class="col-xs-1 control-label">配送费</label>
                    <div class="col-xs-3">
                        <input  class="form-control" name="sendMoney" placeholder="请输入配送费">
                    </div>
                    <label  class="col-xs-1 control-label" style="text-align: left">元</label>
                </div>
                <div class="form-group">
                    <label class="col-xs-1 control-label">超市名称</label>
                    <div class="col-xs-3">

                        <input  class="form-control"  name="superName" placeholder="请输入超市名称">
                        <input name="supermarketId" style="display:none" id="supermarketId"/>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-1 control-label">配送人</label>
                    <div class="col-xs-3">
                        <input  class="form-control" name="sendPeople" placeholder="请输入配送人名称">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-xs-1 control-label">配送电话</label>
                    <div class="col-xs-3">
                        <input class="form-control" name="sendPhone"  placeholder="请输入配送员电话">
                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-xs-1 control-label">配送时间</label>
                    <div class="col-xs-3">
                        <input  class="form-control" name="sendTime" placeholder="请输入配送时间">
                    </div>
                    <label  class="col-xs-1 control-label" style="text-align: left">如 8:30-22:30</label>
                </div>
                <div class="form-group">
                    <label class="col-xs-1 control-label">售后服务</label>
                    <div  class="col-xs-3">
                        <textarea class="col-xs-12" rows="5" name="afterService" ></textarea>
                    </div>

                </div>
            </form>
        </div>
    </div>
</section>
</div>
<script>  

</script>
</body>
</html>
